package com.foolishbird.sdk.params.bean;

import android.os.Parcel;
import android.os.Parcelable;

import androidx.annotation.NonNull;



public class RoleInfo implements Parcelable, Cloneable {

    public static final Creator<RoleInfo> CREATOR = new Creator<RoleInfo>() {
        @Override
        public RoleInfo createFromParcel(Parcel in) {
            return new RoleInfo(in);
        }

        @Override
        public RoleInfo[] newArray(int size) {
            return new RoleInfo[size];
        }
    };
    private String serverId;
    private String serverName;
    private String roleid;
    private String roleName;
    private String roleLevel;

    public RoleInfo() {
    }

    public RoleInfo(String roleName, String roleLevel) {
        this.roleName = roleName;
        this.roleLevel = roleLevel;
    }

    protected RoleInfo(Parcel in) {
        serverId = in.readString();
        serverName = in.readString();
        roleName = in.readString();
        roleLevel = in.readString();
        roleid = in.readString();
    }

    public String getServerId() {
        return serverId;
    }

    public void setServerId(String serverId) {
        this.serverId = serverId;
    }

    public String getServerName() {
        return serverName;
    }

    public void setServerName(String serverName) {
        this.serverName = serverName;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRoleLevel() {
        return roleLevel;
    }

    public void setRoleLevel(String roleLevel) {
        this.roleLevel = roleLevel;
    }

    public String getRoleId() {
        return roleid;
    }

    public void setRoleId(String roleid) {
        this.roleid = roleid;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(serverId);
        dest.writeString(serverName);
        dest.writeString(roleName);
        dest.writeString(roleLevel);
        dest.writeString(roleid);
    }

    @NonNull
    @Override
    public RoleInfo clone() {
        RoleInfo o = null;
        try {
            o = (RoleInfo) super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return o;
    }
}
